package com.itheima.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class UserPwdDto {
    @NotEmpty
    @Pattern(regexp = "^\\S{5,16}$")
    private String newPwd;
    @NotEmpty
    private String oldPwd;
    @NotEmpty
    private String confirmPwd;
}
